package com.jccfc.iMessageFactory.impl;

import com.jccfc.iMessage.IMessage;
import com.jccfc.iMessage.impl.EmailMessage;
import com.jccfc.iMessageFactory.ParentMessageFactory;

/**
 * @Auther: qym
 * @Date: 2021/1/11 10:06
 * @Description: 获取邮件发送实例EmailMessage的工厂类
 */
public class EmailMessageFactory extends ParentMessageFactory {

    //发送消息实例
    private static EmailMessage emailMessage = new EmailMessage();

    /**
     * @Auther: qym
     * @Description: 获取手机消息发送对象
     * @Param:
     * @Return: 消息发送实例
     * @Date: 2020/12/28 14:22
     */
    @Override
    public IMessage getAbstractMessage() {
        return emailMessage;
    }

}
